package ternary;

public class Ternary3 {
	public static void main(String[] args) {
		int a = 5;
		int b = 8;
		int c = 7;
		int d = 10;
	//	int min1 = a<b? a:b;
	//	int min2 = c<b? c:d;
		 int min3 = (a<b?a:b)>(c<d?c:d)?(a<b?a:b):(c<d?c:d);
	    System.out.println(min3);
}
}